{extend name="base_iframe" /}


{block name="body"}


	<form class="form-horizontal ajax-form"  method="post" >

		<div class="row box-ota-info">
			<div class="col-md-12">
				<div class="box-body">


					<div class="form-group">
						<div class="col-sm-2"></div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">商品名称</label>
						<div class="col-sm-8">
							<input type="text" class="form-control" name="goods_name" placeholder="请输入商品名称" value="" />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">商品分类</label>
						<div class="col-sm-4" id="cate-div">
							<select class="form-control cate-select" name="cate_id" data-url="{:url('admin/GoodsBrand/ajaxGetBrand')}">
								<option value="">请选择商品分类</option>}
								{volist name="cateInfo" id="v"}
									<option value="{$v.id}">{$v.level ? "|" : ""} {:str_repeat("——", $v.level)} {$v.cate_name}</option>
								{/volist}
							</select>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">所属品牌</label>
						<div class="col-sm-4">
							<select class="form-control brand-select" name="brand_id">
								<option value="">请选择分类下品牌</option>}
							</select>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">商品货号</label>
						<div class="col-sm-4">
							<input type="text" class="form-control" name="goods_sn" placeholder="请输入货号" value="" />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">当前售价</label>
						<div class="col-sm-4">
							<input type="text" class="form-control" name="now_price" placeholder="售价请按此格式填写, 如: '188.00'" value="" />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">原售价</label>
						<div class="col-sm-4">
							<input type="text" class="form-control" name="original_price" placeholder="留空或为0时，前台不显示原售价" value="" />
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">促销价格</label>
						<div class="col-sm-4">
							<input type="text" class="form-control" name="promote_price" placeholder="如促销价格且在时间范围内，优先于会员价格" value="" />
						</div>

						<div class="input-group col-sm-4">
							<div class="input-group-addon">
								<i class="fa fa-calendar"></i>
							</div>
							<input type="text" name="promote_start_time" value="" readonly class="form-control pull-right datepicker-style" placeholder="开始时间">

							<div class="input-group-addon">
								<i class="fa fa-calendar"></i>
							</div>
							<input type="text" name="promote_end_time" value="" readonly class="form-control pull-right datepicker-style" placeholder="结束时间">
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">商品简介</label>
							<div class="col-sm-8">
								<script id="goods_brief" name="goods_brief" type="text/plain" style="width:100%;height:30%;"></script>
							</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">标记</label>
						<div class="col-sm-2">
							<div class="checkbox">
								<label>
									<input type="checkbox" name="newarrival" value="1">&nbsp;&nbsp;&nbsp;&nbsp;新品
								</label>
							</div>
						</div>
						<div class="col-sm-2">
							<div class="checkbox">
								<label>
									<input type="checkbox" name="bargain" value="1">&nbsp;&nbsp;&nbsp;&nbsp;特价
								</label>
							</div>
						</div>

						<div class="col-sm-2">
							<div class="checkbox">
								<label>
									<input type="checkbox" name="recommend" value="1">&nbsp;&nbsp;&nbsp;&nbsp;推荐
								</label>
							</div>
						</div>
					</div>

					<div class="form-group">
						<label class="col-sm-2 control-label">状态</label>
						<div class="col-sm-2">
							<select class="form-control" name="status">
								<option value="1" >上架</option>
								<option value="0" >下架</option>
							</select>
						</div>
					</div>

				</div>
			</div>
		</div>
	</form>


{/block}

{block name="script"}
	<script type="text/javascript" src="__AJS__/goods/add.js"></script>
{/block}